Optimal. Leaf size=22 \[ \frac{a x^n}{n}+\frac{b x^{2 n}}{2 n} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.020589, antiderivative size = 22, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077 \[ \frac{a x^n}{n}+\frac{b x^{2 n}}{2 n} \]
Antiderivative was successfully verified.
[In] Int[x^(-1 + n)*(a + b*x^n),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 3.79068, size = 15, normalized size = 0.68 \[ \frac{a x^{n}}{n} + \frac{b x^{2 n}}{2 n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**(-1+n)*(a+b*x**n),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.00790198, size = 19, normalized size = 0.86 \[ \frac{x^n \left (2 a+b x^n\right )}{2 n} \]
Antiderivative was successfully verified.
[In] Integrate[x^(-1 + n)*(a + b*x^n),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.02, size = 25, normalized size = 1.1 \[{\frac{a{{\rm e}^{n\ln \left ( x \right ) }}}{n}}+{\frac{b \left ({{\rm e}^{n\ln \left ( x \right ) }} \right ) ^{2}}{2\,n}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^(-1+n)*(a+b*x^n),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.43313, size = 23, normalized size = 1.05 \[ \frac{{\left (b x^{n} + a\right )}^{2}}{2 \, b n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x^n + a)*x^(n - 1),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.221738, size = 26, normalized size = 1.18 \[ \frac{b x^{2 \, n} + 2 \, a x^{n}}{2 \, n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x^n + a)*x^(n - 1),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 4.06205, size = 22, normalized size = 1. \[ \begin{cases} \frac{a x^{n}}{n} + \frac{b x^{2 n}}{2 n} & \text{for}\: n \neq 0 \\\left (a + b\right ) \log{\left (x \right )} & \text{otherwise} \end{cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**(-1+n)*(a+b*x**n),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.211288, size = 26, normalized size = 1.18 \[ \frac{b x^{2 \, n} + 2 \, a x^{n}}{2 \, n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x^n + a)*x^(n - 1),x, algorithm="giac")
[Out]